import java.awt.Color;
import java.awt.Component;


public class RectanglePanel extends javax.swing.JPanel {
	
	private final int INIT_X = 75;
	private final int INIT_Y = 75;
	private final int DIAMETER = 60;
	private MyRectangle _ball;
	
	public RectanglePanel(){
		super();
		_ball = new MyRectangle(Color.RED);
		this.setBackground(Color.WHITE);
		_ball.setLocation(INIT_X, INIT_Y);
		_ball.setSize(DIAMETER, DIAMETER);
	}
	
	public void paintComponent(java.awt.Graphics aBrush){
		super.paintComponent(aBrush);
		java.awt.Graphics2D betterBrush =
				(java.awt.Graphics2D) aBrush;
		_ball.fill(betterBrush);
	}

}
